import request from "@/utils/request";

export function page(data) {
  return request({
    url: "/v1/sys-tenant/page",
    method: "get",
    params: data
  });
}

export function save(data) {
  return request({
    url: "/v1/sys-tenant/save",
    method: "post",
    data: data
  });
}

export function update(data) {
  return request({
    url: "/v1/sys-tenant/update",
    method: "post",
    data: data
  });
}

export function deleteId(id) {
  return request({
    url: "/v1/sys-tenant/delete/" + id,
    method: "get"
  });
}

export function check(id) {
  return request({
    url: "/v1/sys-tenant/get/" + id,
    method: "get"
  });
}

// 查询所有租户
export function queryIdNamePair(id) {
  return request({
    url: "/v1/sys-tenant/queryIdNamePair",
    method: "get"
  });
}
